package com.lrkj.payfee.service;

import java.math.BigDecimal;
import java.util.List;
import com.lrkj.payfee.domain.AgainstRecord;
import com.lrkj.common.core.service.BaseService;

/**
 * 冲抵记录Service接口
 *
 * @author yajun_ren
 * @date 2022-03-10
 */
public interface IAgainstRecordService extends BaseService<AgainstRecord>
{
    /**
     * 查询冲抵记录
     *
     * @param receiptId 冲抵记录ID
     * @return 冲抵记录
     */
    public AgainstRecord selectAgainstRecordById(String receiptId);

    /**
     * 查询冲抵记录列表
     *
     * @param againstRecord 冲抵记录
     * @return 冲抵记录集合
     */
    public List<AgainstRecord> selectAgainstRecordList(AgainstRecord againstRecord);

    /**
     * 新增冲抵记录
     *
     * @param againstRecord 冲抵记录
     * @return 结果
     */
    public int insertAgainstRecord(AgainstRecord againstRecord);

    /**
     * 修改冲抵记录
     *
     * @param againstRecord 冲抵记录
     * @return 结果
     */
    public int updateAgainstRecord(AgainstRecord againstRecord);

    /**
     * 批量删除冲抵记录
     *
     * @param receiptIds 需要删除的冲抵记录ID
     * @return 结果
     */
    public int deleteAgainstRecordByIds(String[] receiptIds);

    /**
     * 删除冲抵记录信息
     *
     * @param receiptId 冲抵记录ID
     * @return 结果
     */
    public int deleteAgainstRecordById(String receiptId);

    //创建冲抵记录
    public AgainstRecord createAgainstRecord(String madvanceReceiptId, String businessId, String businessType,String businessNo, BigDecimal amountAmount );
}
